package copyengine.log
{
    public class CELog
    {
        private static var logImpl:IDebugLog;

        public static function setLogImpl(_logImpl:IDebugLog):void
        {
            logImpl = _logImpl;
        }

        /**
         * Log按Channel输出,方便调试时候Disable相应的Channel
         */
        public static function log(_msg:String, _channel:String = null):void
        {
            logImpl && logImpl.logCh(_channel, _msg);
        }

        public static function warn(..._args):void
        {
            logImpl && logImpl.warn(_args);
        }

        public static function err(..._args):void
        {
            logImpl && logImpl.err(_args);
        }
    }
}
